home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
8bitfiles.net/archives
/
archives.tar
/
archives
/
compuserve-file-archive
/
05 Programming
/
CNOTES.TXT
< prev
next >
Wrap
Text File
|
2019-04-13
|
2KB
|
52 lines
A Few Useful Things to Know About Power C
I've been working with Power C for a while now, and I've learned a
few tricks I'd like to share with others. Hopefully we can help
each other learn this fascinating new language.
1. The disk-swapping discussed in the documentation for those of us
with one drive really isn't necessary; just move the first seven
files (shell-translator), plus stdio.h and dir.h from the Editor/
Compiler disk to your work disk. The new procedure is then to
always have the work disk in the drive, except when linking in
the function libraries. When you compile, use the syntax:
cc -p filename
This will go through the entire compilation process without
asking you to change disks.
2. The "trim" program will trim further an already trimmed file, but
the resulting code doesn't always work! Only trim your object
files once!
3. When passing a variable address to a function (with the intent of
modifying the value of the original variable directly), declare
the original variable as "static". Power C moves the first 32
bytes of variables to be passed (unless declare